#encoding: utf-8

#使用flask-script方式进行调用，解决修改了表结构无法入库的问题

from flask_script import Manager
from Interface_test import app
from flask_migrate import Migrate,MigrateCommand
from module.exts import db


manager = Manager(app)
#1、要使用 flask_migrate必须绑定APP 和 db
migrate = Migrate(app,db)
#2、把MigrateCommand命令放入到manager中
manager.add_command('db',MigrateCommand)


if __name__ == '__main__':
    manager.run()
